<!--{eval $_TPL['titles'] = array('搜索');}-->
<!--{template header_tpl}-->
<div class="grid_16 main_box">
	<div class="grid_16 box">
		<h1>搜索:</h1>
		<div class="grid_15">
			<div class="tabs_header">
				<ul class="tabs">
					<li<!--{if isset($actives[all])}-->$actives[all]<!--{/if}-->>
						<a href="{SITEURL}search/index/?searchkey={$searchkey}&searchtype=all&searchsubmit=yes">
							<span>全部</span>
						</a>
					</li>
					<li<!--{if isset($actives[work])}-->$actives[work]<!--{/if}-->>
						<a href="{SITEURL}search/index/?searchkey={$searchkey}&searchtype=work&searchsubmit=yes">
							<span>作品</span>
						</a>
					</li>
					<li<!--{if isset($actives[user])}-->$actives[user]<!--{/if}-->>
						<a href="{SITEURL}search/index/?searchkey={$searchkey}&searchtype=user&searchsubmit=yes">
							<span>成员</span>
						</a>
					</li>
					<li<!--{if isset($actives[worktag])}-->$actives[worktag]<!--{/if}-->>
						<a href="{SITEURL}search/index/?searchkey={$searchkey}&searchtype=worktag&searchsubmit=yes">
							<span>作品标签</span>
						</a>
					</li>
					<li<!--{if isset($actives[tagid])}-->$actives[tagid]<!--{/if}-->>
						<a href="{SITEURL}search/index/?searchkey={$searchkey}&searchtype=tagid&searchsubmit=yes">
							<span>标签</span>
						</a>
					</li>
				</ul>
			</div>
		</div>
		<div class="grid_15 searchlist">
		<!--{if $list}-->
			<!--{loop $list $item}-->
					<div class="grid_15 searchitem">
						<div class="avatar50">
							<a href="{SITEURL}home/index/{$item[uid]}"><img src="{$item[avatar_small]}" title="{$item[name]}"/></a>
						</div>
						<div class="grid_4 searchwork">
							<div class="work_thumb">
								<a href="{$item[url]}" title="{$item[title]}"><img src="{$item[thumbimg]}" /></a>
							</div>
						</div>
						<div class="grid_8 workinfo">
							<p class="title">{$item[title]}</p>
							<p class="gray">
								喜欢({$item[likenum]}) / 回复({$item[replynum]}) / 查看({$item[viewnum]})<br />
								<!--{if $item[tags]}-->
								TAG:
									<!--{loop $item[tags] $tagid $tagname}-->
										<a href="{SITEURL}search/index/?searchkey=$tagid&searchtype=tagid&searchsubmit=yes">{$tagname}</a> 
									<!--{/loop}-->
								<!--{/if}-->
							</p>
						</div>
						<div class="clear"></div>
					</div>
			<!--{/loop}-->
			<div class="grid_15 footactions">
				<!--{if isset($multi)}-->
					<div class="pages">
							{$multi}
					</div>
				<!--{/if}-->

			</div>
		<!--{else}-->
			<div class="grid_15">
				<div class="errornotice">没有你要找的，你可以换个关键词再试试。 </div>
			</div>
		<!--{/if}-->
		</div>
	</div>
</div>
<div class="grid_7 omega sidebar box">
	<!--{if $taglist}-->
		<div class="grid_7 tag">
		<h1>标签</h1>
		<!--{loop $taglist $tagid $tag}-->
			<a href="{SITEURL}search/index/?searchkey=$tagid&searchtype=tagid&searchsubmit=yes">
				$tag[tagname]($tag[worknum])
			</a>&nbsp;
		<!--{/loop}-->
		</div>
	<!--{else}-->
		<h6>邀请好友</h6>
		<a href="{SITEURL}invite/index/">通过邮件发送邀请</a>
	<!--{/if}-->
</div>
<!--{template footer_tpl}-->